package StudyCode.summary.Basic.console;

import java.io.BufferedReader;
import java.io.InputStreamReader;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ReadLine {
	public static void main(String[] args) {
		BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
		String strLine = null;

		System.out.print("从控制台一行一行的读取内容---------");
		System.out.println("输入Exit退出程序");
		try {
			while ((strLine = br.readLine()) != null) {
				if (strLine.equals("exit"))
					break;
				System.out.println("你输入的是: " + strLine);
			}
			br.close();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}
